#include<stdio.h>
int findMaxConsecutiveOnes(int* nums, int numsSize)
{
	int maxsize=0;
	int tmp=0;
	for(int i=0;i<numsSize;i++)
	{
		if(nums[i]==1)
		{
			tmp++;
		}
		else if(nums[i]==0) 
		{
			if(tmp>maxsize)
			{
				maxsize=tmp;
			}
			tmp=0;
		}
	}
	if(tmp>maxsize)
	{
		maxsize=tmp;
	}
	return maxsize;
}
int main()
{
	int arr[]={0,0,1,1,0,1,1};
	printf("%d",findMaxConsecutiveOnes(arr,7));
	return 0;
}
